package com.gang.ssm.bos.system.controller;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.gang.ssm.bos.core.constant.SessionAttr;


@RequestMapping("/index")
@Controller
public class IndexController {
	
	@RequestMapping("")
	public String index(HttpServletRequest request) {
		
		String userMenu = 
				(String) request.getSession().getAttribute(SessionAttr.USER_MENUS.getValue());
		request.setAttribute("menus", userMenu);
		
		return "main/theme";
		
	}
	
	@RequestMapping("/home")
	public String home() {
		
		return "system/home/home";
	}

}
